package com.yl.immodule

enum class IMVERSION_ {
    V1, //PHP版本
    V2, //JAVA版本
    V3 //ICP 3.0
}
class IMVERSION {
    companion object {
        var version = IMVERSION_.V2
        fun setIMVersion(version: IMVERSION_) {
            this.version = version
        }
        fun isV1(): Boolean {
           return version == IMVERSION_.V1
        }
        fun isV2(): Boolean {
            return version == IMVERSION_.V2
        }
        fun isV3(): Boolean {
            return version == IMVERSION_.V3
        }
    }
}